package com.new_wear.project.system.visits.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 系统 - 三端平台访问记录对象 cst_visits
 * 
 * @author new_wear
 * @date 2020-01-08
 */
public class CstVisits extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Integer id;

    /** 设备端 */
    @Excel(name = "设备端")
    private String device;

    /** 机顶盒设备号 */
    @Excel(name = "机顶盒设备号")
    private String cardno;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** 访问时间 */
    @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    /** 访问时长 */
    @Excel(name = "访问时长")
    private Integer duration;

    /** 1、理论，2、教育，3、文化，4、科技，5、体育 */
    @Excel(name = "1、理论，2、教育，3、文化，4、科技，5、体育")
    private Integer platf;

    /** 栏目ID */
    @Excel(name = "栏目ID")
    private Integer category;

    /** 1、资讯，2、活动 */
    @Excel(name = "1、资讯，2、活动")
    private Integer tpe;

    /** 资源ID */
    @Excel(name = "资源ID")
    private Integer sid;

    /** 标题 */
    @Excel(name = "标题")
    private String subject;

    /** 用户iD */
    @Excel(name = "用户iD")
    private Integer uid;

    /** 是否是视频，1是，0否 */
    @Excel(name = "是否是视频，1是，0否")
    private Integer isVideo;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDevice(String device) 
    {
        this.device = device;
    }

    public String getDevice() 
    {
        return device;
    }
    public void setCardno(String cardno) 
    {
        this.cardno = cardno;
    }

    public String getCardno() 
    {
        return cardno;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setDuration(Integer duration) 
    {
        this.duration = duration;
    }

    public Integer getDuration() 
    {
        return duration;
    }
    public void setPlatf(Integer platf) 
    {
        this.platf = platf;
    }

    public Integer getPlatf() 
    {
        return platf;
    }
    public void setCategory(Integer category) 
    {
        this.category = category;
    }

    public Integer getCategory() 
    {
        return category;
    }
    public void setTpe(Integer tpe) 
    {
        this.tpe = tpe;
    }

    public Integer getTpe() 
    {
        return tpe;
    }
    public void setSid(Integer sid) 
    {
        this.sid = sid;
    }

    public Integer getSid() 
    {
        return sid;
    }
    public void setSubject(String subject) 
    {
        this.subject = subject;
    }

    public String getSubject() 
    {
        return subject;
    }
    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }
    public void setIsVideo(Integer isVideo) 
    {
        this.isVideo = isVideo;
    }

    public Integer getIsVideo() 
    {
        return isVideo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("device", getDevice())
            .append("cardno", getCardno())
            .append("ip", getIp())
            .append("addTime", getAddTime())
            .append("duration", getDuration())
            .append("platf", getPlatf())
            .append("category", getCategory())
            .append("tpe", getTpe())
            .append("sid", getSid())
            .append("subject", getSubject())
            .append("uid", getUid())
            .append("isVideo", getIsVideo())
            .toString();
    }
}
